package com.x.aoki.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 公共包中的统一结果返回对象
 *
 * @author caoy
 * @date 2025-02-14 17:57:16
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CR<T> {

    private Integer code;
    private String message;
    private T data;

    public CR(Integer code,String message){
        this(code,message,null);
    }
}
